//
//  PersonDetail2TableViewCell.m
//  MobileOffice
//
//  Created by jjkj on 16/12/12.
//  Copyright © 2016年 liaoningjujin. All rights reserved.
//

#import "PersonDetail2TableViewCell.h"

@implementation PersonDetail2TableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if (self=[super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        self.myTitleLabel=[MyControl creatLabelWithFrame:CGRectMake(8 ,0 ,80, 56) text:@""];
        self.myTitleLabel.font=FONT_14;
        //self.myTitleLabel.textAlignment=NSTextAlignmentCenter;
        [self.contentView addSubview:self.myTitleLabel];
        
        self.timeLabel=[MyControl creatLabelWithFrame:CGRectMake(self.myTitleLabel.x+self.myTitleLabel.width+15 ,8 ,IPHONE_WIDTH-(self.myTitleLabel.x+self.myTitleLabel.width+15), 20) text:@""];
        self.timeLabel.font=FONT_13;
        self.timeLabel.textColor=[UIColor lightGrayColor];
        //self.timeLabel.textAlignment=NSTextAlignmentRight;
        [self.contentView addSubview:self.timeLabel];
        
        self.infoLabel=[MyControl creatLabelWithFrame:CGRectMake(self.myTitleLabel.x+self.myTitleLabel.width+15 ,self.timeLabel.y+self.timeLabel.height ,IPHONE_WIDTH-(self.myTitleLabel.x+self.myTitleLabel.width+15), 20) text:@""];
        self.infoLabel.font=FONT_13;
        self.infoLabel.textColor=[UIColor lightGrayColor];
        //self.infoLabel.textAlignment=NSTextAlignmentCenter;
        [self.contentView addSubview:self.infoLabel];
        
        
        _lineLabel=[[UILabel alloc]initWithFrame:CGRectMake(0, 55, IPHONE_WIDTH, 1)];
        _lineLabel.backgroundColor=BACKCOLOR_GRAY;
        [self.contentView addSubview:_lineLabel];
    }
    return self;
}


- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
